#!/bin/bash

#docker run --name seata-server -d \
#  -v ./application.yml:/seata-server/resources/application.yml \
#  -p 18091:8091 -p 17091:7091 seataio/seata-server:1.8.0.2

# 数据库配置
# https://github.com/apache/incubator-seata/blob/1.6.1/script/client/at/db/mysql.sql

SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)

docker rm -f seata-server

-v ${SCRIPT_DIR}/application.yml:/seata-server/resources/application.yml \

docker run -d --name seata-server \
  -p 7091:7091 \
  -p 8091:8091 \
  -e SEATA_IP=10.1.16.165 \
  seataio/seata-server:1.5.0


docker run -d --name seata-server \
  -p 17091:17091 \
  -p 18091:18091 \
  -e SEATA_IP=120.26.115.30 \
  -e SEATA_PORT=18091 \
  -v ./application.yml:/seata-server/resources/application.yml \
  seataio/seata-server:1.5.0